<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>登录界面</title>

    <!-- 新 Bootstrap4 核心 CSS 文件 -->
    <link rel="stylesheet" href="/WebContent/css/bootstrap.css">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="/WebContent/js/jquery-3.5.1.js"></script>


    <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
    <script src="/WebContent/js/bootstrap.js"></script>

    <script>
        function register() {
            //跳转到注册界面register.html进行注册
            window.open("register.html", "_blank");  //_self,_parent,_top,_blank
        }
        function login() {
            //登录逻辑
        }
    </script>
</head>
<body>
<!-- 登录表单 -->
<form style="margin-left:500px;margin-top:200px;">
    <div class="form-group">
        <label for="user" stype="display:inline;">账户：</label>
        <input type="text" class="form-control" id="user" style="display:inline;width:200px;"autocomplete="off" />
    </div>
    <div class="form-group">
        <label for="password" style="display:inline;">密码：</label>
        <input type="text" class="form-control" id="password" style="display:inline;width:200px;"autocomplete="off" />
    </div>
    <button type="submit" class="btn btn-primary" onclick="login()">登录</button>
    <button type="submit" class="btn btn-primary" onclick="register()">注册</button>
</form>
</body>
</html>